:host {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

#drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 100%;
  box-sizing: border-box;
  -mox-box-sizing: border-box;
}

.transition #drawer {
  transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s;
  transition: transform ease-in-out 0.3s, width ease-in-out 0.3s;
}

polyfill-next-selector { content: ':host [drawer]'; }
::content[select="[drawer]"] > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

#main {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 256px;
  overflow: auto;
}

.transition #main {
  transition: left ease-in-out 0.3s, padding ease-in-out 0.3s;
}

polyfill-next-selector { content: '#main > [main]'; }
::content[select="[main]"] > * {
  height: 100%;
}
